<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8">
    <title>修改文章</title><bootstrapcss/><icheckcss/>
</head><body>
    <form class="form-group" action="/admin.article/edit" method="post">
         <input type="hidden" name="id" value="<?php echo $onedata['id']; ?>">
         <table class="table table-bordered table-striped table-hover table-condensed">
            <tr><th width="80px">文章链接</th><td> <a href="<?php echo $_SERVER["REQUEST_SCHEME"].'://'.$_SERVER["SERVER_NAME"].'/a/'.$onedata['id']; ?>" target="_blank">/index.php/a/<?php echo $onedata['id']; ?></a></td></tr>
            <tr><th width="80px">所属分类</th><td> <select class="form-control modal-sm" name="cid">
                <?php foreach($data as $key => $value) { ?>
                    <option value="<?php  echo $value['id'].'"'; echo $onedata['cid'] == $value['id']?'selected="selected"':''; ?>  >
                        <?php $prefixstr=$value["level"]==0?'':'|'; echo $prefixstr.str_repeat("-",$value["level"]*2).$value['name']; ?>
                    </option>
                <?php } ?>
            </select></td></tr>
            <tr><th>标题</th><td> <input class="form-control modal-sm" type="text" name="title" value="<?php echo $onedata['title']; ?>"></td></tr>
            <tr><th>作者</th><td> <input class="form-control modal-sm" type="text" name="author" value="<?php echo $onedata['author']; ?>"></td></tr>
           
            <tr><th>标签/关键词</th><td> <input class="form-control modal-sm" type="text"placeholder="多个关键词用顿号分隔" type="text" name="tags" value="<?php echo $onedata['tags']; ?>"></td></tr>
            <tr><th>描述</th><td> <textarea class="form-control modal-sm" name="description" rows="7" placeholder="可以不填，如不填；则截取文章内容前300字为描述"><?php echo $onedata['description']; ?></textarea></td></tr>
            <tr><th>内容</th><td><textarea class="form-control modal-sm" name="content" rows="17" placeholder="文章内容"><?php echo $onedata['content']; ?></textarea></td></tr>
   
            <tr><th>是否置顶</th><td> <span class="inputword">是</span> <input class="icheck" type="radio" name="istop" value="1" <?php echo $onedata['istop']==1?'checked="checked"':''; ?> > <span class="inputword">否</span> <input class="icheck" type="radio" name="istop" value="0" <?php echo $onedata['istop']==0?'checked="checked"':''; ?> ></td></tr>
            <tr><th>是否显示</th><td> <span class="inputword">是</span> <input class="icheck" type="radio" name="visible" value="1" <?php echo $onedata['visible']==1?'checked="checked"':''; ?> > <span class="inputword">否</span> <input class="icheck" type="radio" name="visible" value="0" <?php echo $onedata['visible']==0?'checked="checked"':''; ?> ></td></tr>
            <tr><th></th><td> <input class="btn btn-success" type="submit" value="修改"></td></tr>
        </table></form><bootstrapjs/><icheckjs color="blue"/>
    </body></html>